/*
 * \brief  Core-specific parent client implementation
 * \author Norman Feske
 * \author Christian Helmuth
 * \date   2006-07-20
 */

/*
 * Copyright (C) 2006-2009 Norman Feske
 * Genode Labs, Feske & Helmuth Systementwicklung GbR
 *
 * This file is part of the Genode OS framework, which is distributed
 * under the terms of the GNU General Public License version 2.
 */

#ifndef _CORE__INCLUDE__CORE_PARENT_H_
#define _CORE__INCLUDE__CORE_PARENT_H_

#include <base/printf.h>
#include <parent/parent.h>

namespace Genode {

	/**
	 * In fact, Core has _no_ parent. But most of our libraries could work
	 * seamlessly inside Core too, if it had one. Core_parent fills this gap.
	 */
	class Core_parent : public Parent
	{
		public:

			/**
			 * Constructor
			 */
			Core_parent() { }


			/**********************
			 ** Parent interface **
			 **********************/

			void exit(int exit_value) {
				PERR("Core should never exit"); }

			int announce(const char *service_name,
			             Root_capability service_root)
			{
				PWRN("implement me, please");
				return -1;
			}

			Session_capability session(const char *service_name, const char *args);

			void transfer_quota(Session_capability to_session, const char *amount)
			{
				PWRN("implement me, please");
				throw Quota_exceeded();
			}

			void close(Session_capability session) {
				PWRN("implement me, please"); }
	};
}

#endif /* _CORE__INCLUDE__CORE_PARENT_H_ */
